from langchain_community.document_loaders import PyPDFLoader

loader = PyPDFLoader("f:\\test.pdf")
pages = loader.load_and_split()
print(pages[0].page_content[:100])
print(pages[0].metadata)